﻿namespace SDCloudSolution.SDCloud.Web.Models.Model
{
    public class ModelStatisticsViewModel
    {
        public int TotalSuccessExecutionCount { get; set; }

        public int TotalFailedExecutionCount { get; set; }

        public int TotalExecutionCount => TotalSuccessExecutionCount + TotalFailedExecutionCount;

        public float TotalSuccessExecutionPercentage => (float)TotalSuccessExecutionCount / TotalExecutionCount;

        public float TotalFailedExecutionPercentage => (float)TotalFailedExecutionCount / TotalExecutionCount;


        public string MinExecutionTimeText { get; set; }

        public string MaxExecutionTimeText { get; set; }

        public string AverageExecutionTimeText { get; set; }


        public string MinDataSizeUsageText { get; set; }

        public string MaxDataSizeUsageText { get; set; }

        public string AverageDataSizeUsageText { get; set; }
    }
}